# 导包
import json
import config

# 封装读取json文件的方法
def build_data(json_file):
    # [{},{},{}]===>[(),(),()]
    test_data = []
    with open(json_file,encoding="utf-8") as f:
        json_data = json.load(f)
        for case_data in json_data:
            test_data.append(tuple(case_data.values()))
    return test_data

if __name__ == '__main__':
    json_file = config.BASE_PATH + "/data/login.json"
    print(build_data(json_file))